package jude.java.money.provide.impl;

import java.util.List;

import jude.java.money.beans.ScanFtp;
import jude.java.money.provide.LimitedPagingProvider;
import jude.java.money.service.ScanService;
import jude.java.money.spring.Services;

public class ScanFtpPassportProvider extends LimitedPagingProvider<ScanFtp> {

	public ScanFtpPassportProvider(int limit) {
		super(limit);
	}
	
	@Override
	protected int getTotalCount2() {
		return Services.getScanService().countNewScanFtpSites();
	}

	@Override
	protected List<ScanFtp> loadRecords2(int pageSize, int pageIndex) {
		ScanService service = Services.getScanService();
		return service.listScanFtpPassportSites(pageSize, pageIndex);
	}
	
}
